home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 April: Mac OS SDK / Dev.CD Apr 97 SDK1.toast / Development Kits (Disc 1) / Apple Guide / Authoring / Documentation / Example Source Files Appdx C / Sequence Definitions.src < prev    next >
Encoding:
Text File  |  1994-10-04  |  6.1 KB  |  156 lines  |  [TEXT/ttxt]

  1. # *****************SEQUENCE DEFINTIONS********************
  2.  
  3. #Here's a sequence definition used as a placeholder
  4. <Define sequence> "SequenceGeneric", "How do I *do this task*?"
  5. <SNBS> "Std nav bar"
  6.     <Panel> "PanelGeneric"
  7. <End sequence>
  8.  
  9. #*********************************************************
  10. #A sequence definition for a topic of the topic area "Using the Toolbar"
  11. <Define sequence> "Toolbar", "How do I use the tools in the toolbar?"
  12.   <SNBS> "Std nav bar"
  13.     <Panel> "Use Tools"
  14.   <Panel> "Tools 2"
  15.   <Panel> "Tools 3"
  16.   <Panel> "Tools with Tip"
  17.   <Panel> "Tools 4"
  18. <End sequence>
  19.  
  20. #A sequence definition for a Tip for "How do I use the tools in the toolbar?"
  21. <Define sequence> "Toolbar TipSeq", "Tip: How do I use the tools in the toolbar?"
  22. <SNBS> "Std nav bar"
  23.     <Panel> "Toolbar Tip"
  24. <End sequence>
  25.  
  26. #*********************************************************
  27. #A sequence definition for a topic of the topic area "Using the Dictionary"
  28. <Define sequence> "SequenceAddWords", "How do I add a word to the dictionary?"
  29.   <SNBS> "Std nav bar"
  30.     <Panel> "AddWords1"
  31. <Skip If> ActiveWindow('ttxt', "Dictionary") AND ActiveAppIs('ttxt')
  32.     <Panel> "AddWords2"
  33. <Make Sure> ActiveAppIs('ttxt'), "SWContinuePanelSeq"
  34. <Make Sure> ActiveWindow('ttxt', "Dictionary"), "SWContinuePanelSeq"
  35.     <Panel> "AddWords3"
  36. <Make Sure> ActiveWindow('ttxt', "Dictionary"), "SWContinuePanelSeq"
  37.     <Panel> "AddWords4"
  38. <End sequence>
  39. #*******************Example of a Continue sequence***************
  40. #A sequence definition for a Continue sequence in the above topic,
  41. # "How do I add a word to the dictionary?"
  42. <Define Sequence> "SWContinuePanelSeq", "Oops"
  43.   <Panel> "SWContinuePanel"
  44. <End Sequence>
  45.  
  46.  
  47. #*******************Example of using Oops in a Sequence***************
  48. #same as the previous sequence only uses Oops instead of Continue
  49. #A sequence definition for a topic of the topic area "Using the Dictionary"
  50. #<Define sequence> "SequenceAddWords", "How do I add a word to the dictionary?"
  51. # <SNBS> "Std nav bar"
  52. #    <Panel> "AddWords1"
  53. #<Skip If> ActiveWindow('ttxt', "Dictionary")
  54. #    <Panel> "AddWords2"
  55. #<Make Sure> ActiveAppIs('ttxt'), "SWOopsPanelSeq"
  56. #<Make Sure> ActiveWindow('ttxt', "Dictionary"), "SWOopsPanelSeq"
  57. #    <Panel> "AddWords3"
  58. #<Make Sure> ActiveWindow('ttxt', "Dictionary"), "SWOopsPanelSeq"
  59. #    <Panel> "AddWords4"
  60. #<End sequence>
  61. #*******************Example of an Oops sequence***************
  62. #A sequence definition for an Oops sequence in the above topic,
  63. # "How do I add a word to the dictionary?"
  64. <Define Sequence> "SWOopsPanelSeq", "Oops"
  65.   <SNBS> "Std nav bar"
  66.    <Panel> "SWOopsPanel"
  67. <End Sequence>
  68.  
  69. #*********************************************************
  70. #A sequence definition for a topic of the topic area "Using the Dictionary"
  71. <Define sequence> "SequenceCreateCustomDictionary", "How do I create a custom dictionary?"
  72.   <SNBS> "Std nav bar"
  73.     <Panel> "CreateCustomIntro"
  74.   <Panel> "CreateCustomDecision"
  75. #branch based on state of radio buttons in previous panel
  76. <IF> radioButtonState("automatically create a custom dictionary", "CreateCustomDecision")
  77.   #if user chose "automatically" do this sequence of panels
  78. <Skip If> ActiveWindow('MACS', "SurfWriter Scripts") AND ActiveAppIs('MACS')
  79.     <Panel> "CreateCustomAuto1"
  80. <Make Sure> ActiveWindow('MACS', "SurfWriter Scripts"), "SWContinueSeqCustomAuto1"
  81. <Make Sure> OpenWindow('MACS', "SurfWriter Scripts"), "SWContinueSeqCustomAuto1"
  82. <Make Sure> ActiveAppIs('MACS'), "SWContinueSeqCustomAuto1"
  83.     <Panel> "CreateCustomAuto2"
  84. <Else>
  85.   #if user did not chose "automatically" (ie, chose "manually") do this sequence of panels
  86. <Skip If> ActiveWindow('ttxt', "Dictionary") AND ActiveAppIs('ttxt')
  87.     <Panel> "CreateCustomManual1"
  88. <Make Sure> ActiveAppIs('ttxt'), "SWContinuePanelSeq"
  89. <Make Sure> ActiveWindow('ttxt', "Dictionary"), "SWContinueSeqCustomManual1"
  90.     <Panel> "CreateCustomManual2"
  91. <Make Sure> ActiveAppIs('ttxt'), "SWContinuePanelSeq"
  92. <Make Sure> ActiveWindow('ttxt', "Dictionary"), "SWContinueSeqCustomManual1"
  93.     <Panel> "CreateCustomManual3"
  94. <End If>
  95. #common closure panel
  96.     <Panel> "CreateCustomAllDone"
  97. <End sequence>
  98.  
  99. #A sequence definition for a Continue sequence in the above topic,
  100. # "How do I create a custom dictionary (automatically)?"
  101. <Define Sequence> "SWContinueSeqCustomAuto1", "Oops"
  102.   <Panel> "SWContinuePanelCustomAuto1"
  103. <End Sequence>
  104.  
  105. #A sequence definition for another Continue sequence in the above topic,
  106. # "How do I create a custom dictionary (manually)?"
  107. <Define Sequence> "SWContinueSeqCustomManual1", "Oops"
  108.   <Panel> "SWContinuePanelCustomManual1"
  109. <End Sequence>
  110.  
  111. #A sequence definition for "Definition:AppleScript"
  112. <Define sequence> "Defns:AppleScript", "Definition: AppleScript"
  113.  <SNBS> "Std nav bar"
  114.     <Panel> "HotT AppleScript"
  115. <End sequence>
  116.  
  117. #A sequence definition for a Huh? sequence
  118. <Define sequence> "HuhCompareManualAndAuto", "Comparison of manual and automatic methods"
  119.   <SNBS> "Std nav bar"
  120.     <Panel> "CompareManualAndAuto"
  121. <End sequence>
  122.  
  123. #A sequence definition for a Tip sequence associated with creating a custom dictionary
  124. <Define sequence> "Tip:CustomDictionary", "Tip: How do I create a custom dictionary?"
  125.   <SNBS> "Std nav bar"
  126.     <Panel> "TipForCustomDictionary"
  127. <End sequence>
  128.  
  129. #A sequence definition for a Related Topics sequence associated with creating a custom dictionary
  130. <Define sequence> "Related Topics:CustomDictionary", "Related Topics: How do I create a custom dictionary?"
  131.   <SNBS> "Std nav bar"
  132.     <Panel> "RelatedTopicsForCustomDictionary"
  133. <End sequence>
  134.  
  135. #A sequence definition for a Huh? sequence
  136. <Define sequence> "HuhScriptsFolder", "Scripts in the SurfWriter Scripts folder"
  137.   <SNBS> "Std nav bar"
  138.     <Panel> "ScriptsFolder"
  139. <End sequence>
  140.  
  141.  
  142. #*********************************************************
  143. #Here's a sequence definition for the panel that defines "Standard Dictionary"
  144. <Define sequence> "SequenceDefnStdDictionary", "Definition: standard dictionary"
  145. <SNBS> "Std nav bar"
  146.     <Panel> "PanelDefineStandardDictionary"
  147. <End sequence>
  148.  
  149. #Here's a sequence definition for the panel that defines "Custom Dictionary"
  150. <Define sequence> "SequenceDefnCustomDictionary", "Definition: custom dictionary"
  151. <SNBS> "Std nav bar"
  152.     <Panel> "PanelDefineCustomDictionary"
  153. <End sequence>
  154.  
  155.  
  156.